package com.demo.main;

import com.demo.entity.Person;
import com.demo.entity.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringBootDemoTest {
    @Autowired
    private User user;

    @Autowired
    private Person person;

    @Test
    public void contextLoad1(){
        System.out.println(user.toString());
    }

    @Test
    public void contextLoad2(){
        System.out.println(person.toString());
    }
}
